$__AUI_LOADING_SELECTOR: ".#{$aui-ns}-loading";

@mixin aui-loading-mixin-loading() {
    position: relative;
    &__cover {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
    }
}

/// use to create a .loading-control class
@mixin aui-loading-create-loading($selector: $__AUI_LOADING_SELECTOR) {
    #{$selector} {
       @include aui-loading-mixin-loading();
    }
}

@mixin aui-loading-use-loading-selector() {
    #{$__AUI_LOADING_SELECTOR} {
        @content;
    }
}